<div class="box-body am-padding">
    <!--if{!empty($info) && $info.status == 0}-->
    <div class="dux-alert dux-alert-danger">
        您的资料审核不通过，请重新修改后提交！
    </div>
    <!--{/if}-->

    <!--if{$info.status == 2}-->
    <div class="am-padding am-text-center">
        <div class="dux-icon-alert am-icon-alert-success">
            <i class="am-icon-check"></i>
        </div>
        <br>
        <h1>实名制已认证</h1>
        <div class="am-form dux-form dux-form-right">
            <div class="am-input-group">
                <span class="am-input-group-label">姓名</span>
                <div class="am-form-content">{hide_str($info.name, 3, 2, 4)}</div>
            </div>
            <div class="am-input-group">
                <span class="am-input-group-label">身份证</span>
                <div class="am-form-content">{hide_str($info.idcard, 3, 4, 4)}</div>
            </div>
        </div>
    </div>
    <!--{/if}-->

    <!--if{$info.status == 1}-->
    <div class="am-padding am-text-center">
        <div class="dux-icon-alert am-icon-alert-success">
            <i class="am-icon-info"></i>
        </div>
        <br>
        <h1>实名制认证申请已提交</h1>
        <div class="am-form dux-form dux-form-right">
            <div class="am-input-group">
                <span class="am-input-group-label">姓名</span>
                <div class="am-form-content">{hide_str($info.name, 3, 2, 4)}</div>
            </div>
            <div class="am-input-group">
                <span class="am-input-group-label">身份证</span>
                <div class="am-form-content">{hide_str($info.idcard, 3, 4, 4)}</div>
            </div>
        </div>
    </div>
    <!--{/if}-->


    <!--if{empty($info) || $info['status'] == 0}-->
    <form class="am-form dux-form" action="{url('')}" method="post" data-dux="form-bind" data-advanced="false">
        <div class="am-input-group">
            <span class="am-input-group-label">验证方式</span>

            <select name="valtype" id="valtype" class="am-form-field">
                <option value="0">手机验证</option>
                <option value="1">邮箱验证</option>
            </select>

        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">图片验证</span>
            <input type="text" class="am-form-field" placeholder="图片验证码" name="imgcode" id="imgcode">
            <span class="am-input-group-label">
                                <img src="{url('member/register/code')}" onclick="this.src ='{url(" member/register/code")}?'+Math.random()">
                    </span>
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">短信验证</span>
            <input type="text" class="am-form-field" placeholder="请输入验证码" name="code">
            <span class="am-input-group-label">
                        <button href="javascript:;" class="am-btn am-btn-sm am-btn-primary" data-dux="page-getCode"
                           data-url="{url('getCode', ['t' => time()])}" data-field="valtype,imgcode" type="button">获取验证码</button>
                    </span>
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">所属银行</span>
            <select name="label" class="am-form-field">
                <!--loop{$bankList as $vo}-->
                <option value="{$vo.label}">{$vo.name}</option>
                <!--{/loop}-->
            </select>
        </div>

        <div class="am-input-group">
            <span class="am-input-group-label">开户银行</span>
            <input type="text" class="am-form-field" placeholder="如:XXXX支行" name="account_bank" value="{$info.account_bank}">
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">银行卡号</span>
            <input type="text" class="am-form-field" placeholder="请输入银行卡号" name="account" value="{$info.account}">
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">开户姓名</span>
            <input type="text" class="am-form-field" name="name" placeholder="真实姓名">
        </div>
        <div class="am-input-group">
            <span class="am-input-group-label">身份证号</span>
            <input type="text" class="am-form-field" name="idcard" placeholder="身份证号码">
        </div>

        <div class="am-input-group">
            <span class="am-input-group-label">开户电话</span>
                <input type="text" class="am-form-field" name="tel" placeholder="开户手机号码">
        </div>

        <br>
        <div class="dux-padding">
            <button class="am-btn am-btn-primary am-btn-block"  type="submit">立即认证</button>
        </div>
    </form>
    <!--{/if}-->
</div>
